﻿using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;

namespace SWF
{
    public struct GoToLabel : IAction
    {
        public ActionKind ActionId { get { return ActionKind.GoToLabel; } }
        public uint Version { get { return 3; } }

        public string Label;
        public uint Length { get { return (uint)(3 + Label.Length + 1); } }

        public GoToLabel(SwfReader r)
        {
            Label = r.GetString();
        }

        public void Execute(Runtime.Clip clip, Stack<object> stack, Dictionary<string, object> variables, List<string> constantPool, Dictionary<string, List<IAction>> functionmap)
        {
            //goto label
        }
    }
}
